package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;

/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：AddressManagementParser   
* 类描述   ：地址管理列表实体类+解析   
* 创建人   ：耿卫斌   
* 创建时间：2016-7-29 下午2:12:46   
*
 */
public class AddressManagementParser extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String address_id;//地址id
	private String realname;//会员姓名
	private String mob_phone;//电话
	private String is_default;//是否默认0不是，1是
	private String area_id;//省ID
	private String areaname;//省名字
	private String city_id;//市id
	private String cityname;//市名字
	private String address;//地址详情
	private String addressinfo;//地址全部信息
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		address_id = obj.optString("address_id");
		realname = obj.optString("realname");
		mob_phone = obj.optString("mob_phone");
		is_default = obj.optString("is_default");
		area_id = obj.optString("area_id");
		areaname = obj.optString("areaname");
		city_id = obj.optString("city_id");
		cityname = obj.optString("cityname");
		address = obj.optString("address");
		addressinfo = obj.optString("addressinfo");
	}
	public String getAddress_id() {
		return address_id;
	}
	public void setAddress_id(String address_id) {
		this.address_id = address_id;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getMob_phone() {
		return mob_phone;
	}
	public void setMob_phone(String mob_phone) {
		this.mob_phone = mob_phone;
	}
	public String getIs_default() {
		return is_default;
	}
	public void setIs_default(String is_default) {
		this.is_default = is_default;
	}
	public String getArea_id() {
		return area_id;
	}
	public void setArea_id(String area_id) {
		this.area_id = area_id;
	}
	public String getAreaname() {
		return areaname;
	}
	public void setAreaname(String areaname) {
		this.areaname = areaname;
	}
	public String getCity_id() {
		return city_id;
	}
	public void setCity_id(String city_id) {
		this.city_id = city_id;
	}
	public String getCityname() {
		return cityname;
	}
	public void setCityname(String cityname) {
		this.cityname = cityname;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getAddressinfo() {
		return addressinfo;
	}
	public void setAddressinfo(String addressinfo) {
		this.addressinfo = addressinfo;
	}
	public AddressManagementParser() {
		super();
	}
	public AddressManagementParser(String address_id, String realname,
			String mob_phone, String is_default, String area_id,
			String areaname, String city_id, String cityname, String address,
			String addressinfo) {
		super();
		this.address_id = address_id;
		this.realname = realname;
		this.mob_phone = mob_phone;
		this.is_default = is_default;
		this.area_id = area_id;
		this.areaname = areaname;
		this.city_id = city_id;
		this.cityname = cityname;
		this.address = address;
		this.addressinfo = addressinfo;
	}
	@Override
	public String toString() {
		return "AddressManagementParser [address_id=" + address_id
				+ ", realname=" + realname + ", mob_phone=" + mob_phone
				+ ", is_default=" + is_default + ", area_id=" + area_id
				+ ", areaname=" + areaname + ", city_id=" + city_id
				+ ", cityname=" + cityname + ", address=" + address
				+ ", addressinfo=" + addressinfo + "]";
	}
}
